﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day04Night
{
    class Program
    {
        static void Main(string[] args)
        {
            /*
             * 练习：主城堡受伤，警报响起。
             * 温馨提示：将来还会有其他物体受影响。
             */
            Enemy enemy = new Enemy()
            {
                DamageObj = new List<IDamage>()
                {
                    new Castle(){ Person = new Alarm()},
                    new Village(){ Person = new Alarm()}
                }
            };
            enemy.Attack();
        }
    }
}
